<?php $view->extend('admin/donation/template', 'content', array('title' => 'Orders')); ?>


<h2>Orders</h2>
<table class="nice" cellspacing="0" summary="Commands">
	<caption>Server statistics</caption>
	<tr>
		<th scope="col" class="nobg">Donation package</th>
		<th scope="col">User</th>
		<th scope="col">Character</th>
		<th scope="col">Realm</th>
		<th scope="col">Paid Money</th>
		<th scope="col">Item recieved</th>
	</tr>
			
			
	<?php foreach($orders as $o):?>
		<tr>
			<td><?php echo $o->donation->getName()?></td>
			<td><?php echo $o->getUser()->getUsername()?></td>
			<td><?php echo $o->getCharacter()->name?></td>
			<td><?php echo $o->getRealm()->name?></td>
			<td><?php echo $o->getMcGross() . ' ' . $o->getCurrency()?></td>
			<td><?php echo ($o->isItemRecieved() ? 'Yes' : 'No')?></td>
		</tr>
	<?php endforeach;?>		

</table>	
